﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MyBlog.WebApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    [Authorize]
    public class TestAuthorize2Controller : ControllerBase
    {
        [HttpGet("Test")]
        public string Test()
        {
            return "有授权哦";
        }

        [HttpGet("Test2")]
        public string Test2()
        {
            return "有授权哦";
        }
    }
}
